mod scene;

mod operate;

use bevy::asset::UnapprovedPathMode;
use bevy::log::{ LogPlugin};
use bevy::prelude::*;

fn main() {
    App::new()
        // .add_plugins(DefaultPlugins)
        .add_plugins(DefaultPlugins
            //禁用日志插件，未能生效
            // .build().disable::<LogPlugin>()
            .set(AssetPlugin {
                // 开发时可临时放宽限制
                unapproved_path_mode: UnapprovedPathMode::Allow,
                ..default()
            })

        )
        //加载相册场景
        .add_systems(Startup, scene::init_scene)
        //特定资源图片加载监听系统
        .add_systems(Update,scene::listen_for_specific_assets)
        //拖拽事件处理系统
        .add_systems(Update,operate::file_drag_and_drop_system)
        .run();
}
